#include <iostream>
#include <string>
#include "AffineCircle.h"
int main() {
    std::string img_dir="/home/wsl/Downloads/qq-files/2501038982/file_recv/data20220812/Data/";
    std::vector<std::string> img0_names{"11.bmp","21.bmp","31.bmp"};
    std::vector<std::string> img1_names{"12.bmp","22.bmp","32.bmp"};

    std::vector<cv::Mat> img0{};
    std::vector<cv::Mat> img1{};
    for(int i=0;i<img0_names.size();i++)
    {
        auto im0=cv::imread(img_dir+img0_names[i]);
        auto im1=cv::imread(img_dir+img1_names[i]);

        img0.push_back(im0);
        img1.push_back(im1);
    }
    auto model=AffineCircle();
    auto matrix=model.getMatrix(img0,img1);
    cv::Mat temp;
    cv::warpAffine(img1[0],temp,matrix,img0[0].size());
    cv::imshow("a",temp);
    cv::waitKey(0);
//    std::cout<<matrix;
}
